package edu.kjxy.day01.isaliveOtherTest;

/**
 * 功能:Thread.currentThread和this的差异
 * 作者:程序员欧阳子韩
 * 日期:2024/1/31 19:28
 */
public class RunTest {
    public static void main(String[] args) {
        CountOperate c = new CountOperate();
        Thread t1 = new Thread(c);
        System.out.println("main begin t1 isAlive=" + t1.isAlive());
        t1.setName("A");
        t1.start();
        System.out.println("main end t1 isAlive=" + t1.isAlive());
    }
}
